#include <REGX52.H>

// 防御防御方法
sbit Buzzer=P2^5;//蜂鸣器端口
void Buzzer_Delay500us()		//@11.0592MHz
{
	unsigned char i;

	i = 227;
	while (--i);
}

void Buzzer_Time(unsigned int ms)
{	
	unsigned int i;
	for(i=0;i<ms*2;i++)
	{
		Buzzer=!Buzzer;
		Buzzer_Delay500us();
	}

}